/**
 * Notes: 模块别名配置
 * Date: 2025-05-01
 * Ver : CCMiniCloud Framework 3.0.1 ALL RIGHTS RESERVED BY cclinux0730 (wechat)
 */

// 注册模块别名
const moduleAlias = require('module-alias');

// 设置别名映射
moduleAlias.addAliases({
    'app-util': __dirname + '/framework/core/app_util.js',
    'app-error': __dirname + '/framework/core/app_error.js',
    'app-code': __dirname + '/framework/core/app_code.js',
    'app-cache': __dirname + '/framework/cache/cache.js',
    'app-config': __dirname + '/config/config.js',
    'app-database': __dirname + '/framework/database/database.js',
    'app-model': __dirname + '/framework/database/model.js',
    'app-router': __dirname + '/framework/core/app_router.js',
    'app-validate': __dirname + '/framework/validate/validate.js',
    'app-log': __dirname + '/framework/log/log.js',
    'cloud-base': __dirname + '/framework/cloud/cloud_base.js',
});

// 注册模块别名
moduleAlias();

module.exports = moduleAlias;